body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 全局样式重置 */
* {
  box-sizing: border-box;
}

/* Ant Design 样式覆盖 */
.ant-layout {
  min-height: 100vh;
}

.ant-layout-sider {
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
}

.ant-layout-header {
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ant-table {
    font-size: 12px;
  }
  
  .ant-descriptions-item-label {
    font-size: 12px;
  }
  
  .ant-descriptions-item-content {
    font-size: 12px;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* 空状态样式 */
.empty-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #999;
}

.empty-container .anticon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* 统计卡片样式 */
.stats-card {
  text-align: center;
  padding: 20px;
}

.stats-card .stats-number {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.stats-card .stats-label {
  font-size: 14px;
  color: #666;
}

/* 表格操作按钮样式 */
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions .ant-btn {
  padding: 4px 8px;
  height: auto;
  font-size: 12px;
}

/* 搜索栏样式 */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar .ant-input,
  .search-bar .ant-select,
  .search-bar .ant-btn {
    width: 100%;
  }
}

/* 页面标题样式 */
.page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #262626;
}

/* 卡片标题样式 */
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .anticon {
  color: #1890ff;
}

/* 状态标签样式 */
.status-tag {
  font-weight: 500;
}

/* 描述列表样式优化 */
.ant-descriptions-item-label {
  font-weight: 600;
  color: #262626;
}

/* 表格样式优化 */
.ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
}

.ant-table-tbody > tr:hover > td {
  background: #f5f5f5;
}

/* 模态框样式 */
.ant-modal-header {
  border-bottom: 1px solid #f0f0f0;
}

.ant-modal-footer {
  border-top: 1px solid #f0f0f0;
}

/* 表单样式 */
.ant-form-item-label > label {
  font-weight: 600;
}

/* 按钮组样式 */
.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .button-group {
    flex-direction: column;
  }
  
  .button-group .ant-btn {
    width: 100%;
  }
}

/* 头像样式 */
.user-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 链接样式 */
.ant-btn-link {
  padding: 0;
  height: auto;
  line-height: 1.5;
}

/* 标签组样式 */
.tag-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* 统计数字样式 */
.stat-number {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #8c8c8c;
  line-height: 1;
}

/* 课程卡片样式 */
.course-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.course-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 预订状态指示器 */
.booking-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.booking-status .anticon {
  font-size: 12px;
}

/* 时间显示样式 */
.time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
}

.time-display .anticon {
  color: #1890ff;
}

/* 地点显示样式 */
.location-display {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
}

.location-display .anticon {
  color: #52c41a;
}

/* 教师信息显示样式 */
.teacher-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.teacher-info .anticon {
  color: #722ed1;
}

/* 学生信息显示样式 */
.student-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.student-info .anticon {
  color: #13c2c2;
}

/* 响应式表格 */
@media (max-width: 992px) {
  .ant-table {
    font-size: 12px;
  }
  
  .ant-table .ant-btn {
    padding: 2px 6px;
    font-size: 11px;
  }
}

/* 移动端优化 */
@media (max-width: 576px) {
  .ant-card {
    margin: 8px;
  }
  
  .ant-descriptions {
    font-size: 12px;
  }
  
  .ant-modal {
    margin: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* 打印样式 */
@media print {
  .ant-layout-sider,
  .ant-layout-header,
  .ant-btn,
  .ant-pagination {
    display: none !important;
  }
  
  .ant-layout-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .ant-card {
    box-shadow: none !important;
    border: 1px solid #d9d9d9 !important;
  }
}